<?php

namespace app\home\validate;
use think\Validate;

class Authorize extends Validate
{
    protected $rule = [
        'name'        => 'require',
        'id'          => 'require|idCard',
    ];

    protected $message = [
        'name.require'    => '姓名不能为空',
        'id.require'      => '身份证号不能为空',
        'id.idCard'       => '身份证号格式不正确',
    ];
}
